Today we will be looking at a data set that contains some interesting infromation about penguins to see if we can find any trends!
Elevator pitch
The data shows that as the body mass of a penguin increseas, so does it’s flipper length. This infomration can be used to help indentify and characterize different species of penguins.
Read and format project data
# Learn morea about Code Cells: https://quarto.org/docs/reference/cells/cells-jupyter.html# Include and execute your code heredf = pd.read_csv("https://raw.githubusercontent.com/byuidatascience/data4python4ds/master/data-raw/mpg/mpg.csv")
Highlight the Questions and Tasks
Question|Task 1
COPY PASTE QUESTION|TASK 1 FROM THE PROJECT HERE
The data that will be looked at relates to Penguins and looking for trends that occur. In particular we will be looking at the body mass and flipper length to see if there is any correlation to species.
Read and format data
# Include and execute your code here
Question|Task 2
Penuins Chart
As you can see, as the body mass of a penguin increseas, so does it’s flipper length. We can see that the Gentoo species has both the largest body mass and flipper length.
plot example
# Include and execute your code here( ggplot(data=penguins, mapping=aes(x="flipper_length_mm", y="body_mass_g"))+ geom_point(aes(color="species", shape="species"))+ geom_smooth(method="lm")+ labs( title="Body mass and flipper length", subtitle="Dimensions for Adelie, Chinstrap, and Gentoo Penguins", x="Flipper length (mm)", y="Body mass (g)", color="Species", shape="Species", ))
My useless chart
Question|Task 3
Penuin Data Table
-Here is the data table that has the information about Penguins. This is the data that was used for the previous chart
table example
# Include and execute your code herepenguins
table example {#cell-Q1-table}
species
island
bill_length_mm
bill_depth_mm
flipper_length_mm
body_mass_g
sex
year
0
Adelie
Torgersen
39.1
18.7
181.0
3750.0
male
2007
1
Adelie
Torgersen
39.5
17.4
186.0
3800.0
female
2007
2
Adelie
Torgersen
40.3
18.0
195.0
3250.0
female
2007
3
Adelie
Torgersen
NaN
NaN
NaN
NaN
NaN
2007
4
Adelie
Torgersen
36.7
19.3
193.0
3450.0
female
2007
...
...
...
...
...
...
...
...
...
339
Chinstrap
Dream
55.8
19.8
207.0
4000.0
male
2009
340
Chinstrap
Dream
43.5
18.1
202.0
3400.0
female
2009
341
Chinstrap
Dream
49.6
18.2
193.0
3775.0
male
2009
342
Chinstrap
Dream
50.8
19.0
210.0
4100.0
male
2009
343
Chinstrap
Dream
50.2
18.7
198.0
3775.0
female
2009
344 rows × 8 columns
Note: Non executing Python Snippets include (3) ``` followed by (3) more ```, each on their own line. These are not single quotes, they are the key left of the number 1 key on the keyboard. The top row can include the language of code that is pasted inbetween the ``` marks.
Note: These also work in Slack and it is expected they are used for any code shared in that app. No screen shots allowed.